package router

import (
	"gin-user/handler/service"

	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/api/post")   //帖子路由组
	r.POST("/api/file")   //文件路由组
	r.POST("/api/review") //审核路由组
	r.POST("/api/user")   //用户路由组
	r.POST("/upload", service.Upload)
	r.POST("/post", service.Post)
	return r
}
